package grape.base.rest.message.form;
import grape.common.rest.form.BaseForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
 * <p>
 * 消息表
 * </p>
 *
 * @author yangwei
 * @since 2020-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="消息添加表单对象")
public class MessageCreateForm extends BaseForm {

    private static final long serialVersionUID = 1L;
    @NotEmpty(message="消息标题不能为空")
    @ApiModelProperty(value = "消息标题",required = true)
    private String title;

    @NotEmpty(message="消息简介不能为空")
    @ApiModelProperty(value = "消息简介",required = true)
    private String shortContent;

    @NotEmpty(message="消息内容不能为空")
    @ApiModelProperty(value = "消息内容",required = true)
    private String content;

    @ApiModelProperty(value = "消息分类")
    private String typeDictId;

}
